//
// Created by ASUS on 2025/4/23.
//

#ifndef EMS_WORKMANGER_H
#define EMS_WORKMANGER_H
#include <iostream>
#include "Worker.h"
using namespace std;

class WorkManager {
public:
    //构造函数
    WorkManager();

    //展示菜单
    void Show_Menu();

    //退出
    void ExitSystem();
    //record workers
    int num;
    Worker **pWorker;

    //add
    void Add_Worker();

    //save in file
    void Save_File();

    //judge whether the file exists
    bool File_Exist;

    //get the num of workers in file
    int Get_File_Cnt();

    //init workers
    void Init_Workers();

    //show workers
    void Show_Workers();

    //delete worker
    void Del_Worker();
    //judge whether the worker exists,return the index of worker
    int IsExist(int id);

    //change worker
    void Change_Worker();

    //find worker
    void Find_Worker();

    //sort worker
    void Sort_Worker();

    //cls
    void Cls_Worker();


    //析构函数
    ~WorkManager();
};


#endif //EMS_WORKMANGER_H